import 'package:core_foundation/redux/state_app.dart';
import 'package:flutter/material.dart';
import 'package:flutter_redux/flutter_redux.dart';

class HomeDrawer extends StatelessWidget {
  
  @override
  Widget build(BuildContext context) {
    return Material(
      child: StoreBuilder<StateApp>(
        builder: (context, store) {

          return Drawer(
            ///侧边栏按钮Drawer
            child: Container(
              ///默认背景
              color: store.state.themeData.primaryColor,
              child: SingleChildScrollView(
                ///item 背景
                child: Container(
                  constraints: BoxConstraints(
                      minHeight: MediaQuery.of(context).size.height),
                  child: Material(
                    color: Colors.white,
                    child: Column(
                      children: <Widget>[
                        UserAccountsDrawerHeader(),
                        
                        ListTile(title: Text("drawer列表信息"),),
                      ],
                    ),
                  ),
                ),
              ),
            ),
          );
        },
      ),
    );
  }
}
